<?php
/**
 * Script file
 * @author Serguei Shimansky <privateteacher@mail.ru>
 * @copyright Copyright (c) 2011, Serguei Shimansky
 * @version 1.0
 * @package fast-comment
 */

$vars2_php_version = 							phpversion();

$vars2_date_default_timezone = 'Europe/Moscow';

if ($vars2_php_version >= '5.1.0') {
	date_default_timezone_set($vars2_date_default_timezone);
}

$vars2_http_referer = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';

$vars2_remote_address = (isset ($_SERVER['REMOTE_ADDR'])) ? trim(@getenv('REMOTE_ADDR')) : '';

$vars2_http_x_forwarded_for = '';
if (!empty($vars2_http_x_forwarded_for)) {
	$vars2_http_x_forwarded_for = trim(@gethostbyaddr($vars2_http_x_forwarded_for));
} elseif (!empty($REMOTE_ADDR)) {
	$vars2_http_x_forwarded_for = trim(@gethostbyaddr($REMOTE_ADDR));
} elseif (!empty($_SERVER['REMOTE_ADDR'])) {
	$vars2_http_x_forwarded_for = trim(@gethostbyaddr($_SERVER['REMOTE_ADDR']));
}

$vars2_marker = time();
$vars2_date = date("d.m.Y");
$vars2_time = date("H:i:s");
$vars2_start_time = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
$vars2_end_time = mktime(23, 59, 59, date("m"), date("d"), date("Y"));

/////////////////////////////////////////////////////////
$pt_guestbook_demo_table_name						= 'pt_guestbook_demo';

/////////////////////////////////////////////////////////
